package user;

import book.BookList;
import operation.Ioperateion;

public abstract class User {
    protected String name;
    public Ioperateion[] ioperateion;

    public User(String name) {
        this.name = name;
    }

    public void doOperation(int choice, BookList books) {
        this.ioperateion[choice].work(books);
    }

    public abstract int menu();
}
